const express = require('express');
const router = express.Router();
const { auth } = require('../middlewares/auth');
const ossController = require('../controllers/oss.controller');

// 获取上传签名URL
router.get('/upload/signed-url', auth, ossController.getUploadSignedUrl);

// 获取访问签名URL
router.get('/access/signed-url', auth, ossController.getAccessSignedUrl);

// 删除文件
router.post('/delete', auth, ossController.deleteFile);

module.exports = router; 